package club.caihappy.store.mapper;

import club.caihappy.store.entity.Product;

import java.util.List;

/**
 * 处理商品数据的持久层接口
 * Created by DELL on 2022/3/22
 **/
public interface ProductMapper {

    /**
     * 查询热销商品的前四名
     *
     * @return
     */
    List<Product> findHotList();

    Product findById(Integer id);
}
